﻿<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2"
    namespace="KojackGames.Blackjack.Domain.DomainViews.BettingView"
        assembly="KojackGames.Blackjack.Domain">

  <class name="BetOnBlackJackTableView" table="Table_and_Player" mutable="false" lazy="false" >

    <id name="id" type="Guid">
    </id>

    <property column="player_token" name="player_token"/>        
    <property name="can_accept_bet" column="can_accept_bet"/>
    <property name="can_deal" column="can_deal"/>
    <property name="dollars_in_pot"/>

    <bag name="bets_placed" lazy="false" >
      <key column="blackjack_table_id"/>
      <one-to-many class="BetView"></one-to-many>
    </bag>
    
  </class>
 
</hibernate-mapping>